#
# Makefile ingenio/trunk/_tanila/js/tanilaeditor/
#

CLEANFILES = *~ .*~ tanilaeditor-min.js tanilaeditor_standalone.js tanilaeditor_standalone-min.js
DIRS = $(shell find . -maxdepth 1 -name '[!.]*' -type d)
MERGEFILES = yuifiles/yui-min.js \
	yuifiles/oop-min.js \
	yuifiles/event-min.js \
	yuifiles/dom-min.js \
	yuifiles/node-min.js \
	tanilaeditor-min.js

all: js css
	@for i in $(DIRS); do make -S all -C $$i; done;

js: tanilaeditor_standalone-min.js
	@for i in $(DIRS); do make -S js -C $$i; done;

tanilaeditor_standalone.js: tanilaeditor-min.js
	@cat $(MERGEFILES) > $@

tanilaeditor-min.js: tanilaeditor.js
	@yuicompressor $<

tanilaeditor_standalone-min.js: tanilaeditor_standalone.js
	@yuicompressor $<

css:
	@for i in $(DIRS); do make -S css -i -C $$i; done;

clean:
	rm -f $(CLEANFILES)
	@for i in $(DIRS); do make -S clean -C $$i; done;

#export: 
#	@mkdir -p $(EXPORTPATH)
#	@for i in $(DIRS); do make -S export -C $$i; done


